home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / sushi_oi.swf / scripts / DefineButton2_207 / BUTTONCONDACTION on(release)_2.as < prev    next >
Encoding:
Text File  |  2008-11-12  |  1.4 KB  |  63 lines

  1. on(release){
  2.    if(hitTest(_root.maggie))
  3.    {
  4.       if(_root.mag == 4)
  5.       {
  6.          gotoAndPlay(1);
  7.          _root.maggie.gotoAndPlay("eat");
  8.       }
  9.       else
  10.       {
  11.          gotoAndPlay(1);
  12.          _root.maggie.gotoAndPlay("angry");
  13.       }
  14.       setProperty("_root.clamrice", _X, "259");
  15.       setProperty("_root.clamrice", _Y, "364");
  16.    }
  17.    if(hitTest(_root.karen))
  18.    {
  19.       if(_root.lun == 4)
  20.       {
  21.          gotoAndPlay(1);
  22.          _root.karen.gotoAndPlay("eat");
  23.       }
  24.       else
  25.       {
  26.          gotoAndPlay(1);
  27.          _root.karen.gotoAndPlay("angry");
  28.       }
  29.       setProperty("_root.clamrice", _X, "259");
  30.       setProperty("_root.clamrice", _Y, "364");
  31.    }
  32.    if(hitTest(_root.iris))
  33.    {
  34.       if(_root.la == 1)
  35.       {
  36.          gotoAndPlay(1);
  37.          _root.iris.gotoAndPlay("eat");
  38.       }
  39.       else
  40.       {
  41.          gotoAndPlay(1);
  42.          _root.iris.gotoAndPlay("angry");
  43.       }
  44.       setProperty("_root.clamrice", _X, "259");
  45.       setProperty("_root.clamrice", _Y, "364");
  46.    }
  47.    if(hitTest(_root.meiji))
  48.    {
  49.       if(_root.ji == 2)
  50.       {
  51.          gotoAndPlay(1);
  52.          _root.meiji.gotoAndPlay("eat");
  53.       }
  54.       else
  55.       {
  56.          gotoAndPlay(1);
  57.          _root.meiji.gotoAndPlay("angry");
  58.       }
  59.       setProperty("_root.clamrice", _X, "259");
  60.       setProperty("_root.clamrice", _Y, "364");
  61.    }
  62. }
  63.